package com.air.common.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.air.common.util.QueryCondition;
import com.air.common.util.QueryCondition4Update;

public interface BaseDao {
	
	public <T> T selectById(Integer id);
	
	public <T> T insert(T obj) throws Exception;
	
	public int updateById(Object object);
	
	public int deleteById(Integer id);
	
	public <T> List<T> queryByCondition(QueryCondition condition);
	
	public <T> List<T> queryByCondition(QueryCondition condition,RowBounds rowBounds);
	
	public int updateByCondition(QueryCondition4Update condition4Update);
	
	public int deleteByCondition(QueryCondition condition);
	
	public int countByCondition(QueryCondition condition);
	
}
